package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_zhenhuan_third_join_banquet", desc = "甄嬛无双门客-甄嬛三阶段加入别人的宴会", autoSave = true, dataUpload = true, eventName = "zhguest_thirjoin", uploadCk = true)
public class LogZhenHuanThirdJoinBanquet extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动Id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "宴会id", dataAttribute = "zhguest_thirid")
    private int banquetId;
    @FieldTypeAnnotation(desc = "入座位置", dataAttribute = "zhguest_thirjoinid")
    private int joinPos;
    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "zhguest_thirjoinget")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogZhenHuanThirdJoinBanquet(int activityId, long userId, int banquetId, int joinPos, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.banquetId = banquetId;
        this.joinPos = joinPos;
        this.reward = reward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
